My application generates a video file using the MediaRecorder api, of type video/webm.
I'm trying to copy this file to the clipboard by:
const item = new ClipboardItem({['video/webm']: blob});
await navigator.clipboard.write([item]);
However I get the following error:
ERROR DOMException: Type video/webm not supported on write.
What MIME types are supported for clipboard.write? Is there any video MIME type supported?
On Safari (Webkit), there are four supported: https://webkit.org/blog/10855/async-clipboard-api/
In Chromium, the following MIME types are supported:
text/plaintext/htmlimage/pngSource: ClipboardWriter::IsValidType
This tracking bug tracks support for more formats.
Currently, there is a proposal to allow custom MIME Types: Pickling for Async Clipboard API